package com.s7.recycler.listener;

import android.view.View;

/**
 * Created by Administor on 2018\7\11 0011.
 * RecyclerView 中 Item的各种点击事件
 */
public class Recycler {

    /**
     * RecyclerView Item的子集的点击事件
     */
    public interface OnClickListener<T> {
        void onChildClick(View view, int position, T data);
    }

    /**
     * RecyclerView Item的子集的选中事件
     */
    public interface OnCheckedChangeListener<T> {
        void onCheckedChange(View view, int position, boolean b, T data);
    }

    /**
     * RecyclerView 的点击事件
     */
    public interface OnItemClickListener<T> {
        void onItemClick(View view, int position, T data);
    }

    /**
     * RecyclerView 的长按事件
     */
    public interface OnItemLongClickListener<T> {
        void onItemLongClick(View view, int position, T data);
    }
}
